<template>
  <div class="home">
    <van-search v-model="value" placeholder="请输入搜索关键词" data() {
    return {
      value: '',
    };
  },/>
  </div>
</template>

<script>
import request from "@/utils/request";
export default {
  name: "Home",
  data() {
    return {
      value: ""
    };
  },

  created() {
    // 测试了一下，可删
    request.get("/api/shop/banner").then(data => {
      console.log("data", data);
    });
    request
      .get("/api/shop/category/list1")
      .then(data => {
        console.log("data", data);
      })
      .catch(err => {
        console.log("err", err);
      });
  }
};
</script>

<style lang="less" scoped>
</style>
